gtktextview: Add a missing g_assert_not_reached() for switch default
authorPhilip Withnall <withnall@endlessm.com>
Tue, 10 Oct 2017 17:29:36 +0000 (18:29 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Wed, 11 Oct 2017 16:26:54 +0000 (17:26 +0100)
commit7e8831d66890a425d1b4a02fab32aae7b01031dd
treef84dabcd6cda26ce1407424b256a213e1587bc6b
parent1c232ed583592c0fe34b408f58ecfc41c92bd18b
gtktextview: Add a missing g_assert_not_reached() for switch default

Clarifies the code and helps catch invalid enum values before they
propagate further. Also add a comment about why two seemingly legitimate
values are not handled there (they’re handled higher up in the file).

Coverity CID: 1457700

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=788787
gtk/gtktextview.c